package com.furongji.education.clients;

import com.furongji.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "order-service")
public interface OrderFeignClient {

    @GetMapping("/api/orders/isPurchaseCourse/{userId}/{courseId}")
    public Result isPurchaseCourse(@PathVariable String userId, @PathVariable String courseId);

    // 统计订单数量
    @GetMapping("/admin/orders/orderCount/{date}")
    public Integer orderCount(@PathVariable String date);
}
